<?php
namespace App\Box\Dto;

use Mine\Interfaces\MineModelExcel;
use Mine\Annotation\ExcelData;
use Mine\Annotation\ExcelProperty;

/**
 * 盒子关联产品Dto （导入导出）
 */
#[ExcelData]
class BoxProductDto implements MineModelExcel
{
    #[ExcelProperty(value: "ID", index: 0)]
    public string $id;

    #[ExcelProperty(value: "盒子id", index: 1)]
    public string $box_id;

    #[ExcelProperty(value: "产品id", index: 2)]
    public string $product_id;

    #[ExcelProperty(value: "产品图片", index: 3)]
    public string $img_url;

    #[ExcelProperty(value: "产品价格", index: 4)]
    public string $price;

    #[ExcelProperty(value: "概率-展示给前台用的", index: 5)]
    public string $probability;

    #[ExcelProperty(value: "权重-后台计算用的", index: 6)]
    public string $weight;

    #[ExcelProperty(value: "展示状态(1正常,2禁用)", index: 7)]
    public string $status;

    #[ExcelProperty(value: "创建者", index: 8)]
    public string $created_by;

    #[ExcelProperty(value: "创建时间", index: 9)]
    public string $create_time;

    #[ExcelProperty(value: "更新时间", index: 10)]
    public string $update_time;


}